<template>
  <div>
    <h1>这是父页面</h1>
    <Child :result="result"></Child>
  </div>
</template>

<script>
import Child from "@/components/child/Child.vue";
export default {
  components: {
    Child,
  },
  data() {
    return {
      result: {
        data: [],
      },
    };
  },
  mounted() {
    setInterval(() => {
      console.log("updated!");
      this.result.data.push(Math.random());
    }, 2000);
  },
};
</script>